package com.example.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @TableName buy_list
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class BuyList implements Serializable {
    private Integer buyId;

    private Integer productId;

    private Integer storeId;

    private Integer buyNum;

    private Integer factBuyNum;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date buyTime;

    private Integer supplyId;

    private Integer placeId;

    private String buyUser;

    private String phone;

    private String isIn;

    // -------------- 扩展属性 -------------------
    private String storeName; // 视图属性-仓库名称
    private String productName; // 视图属性-商品名称
    //todo_tjf (tjf,2023/10/26,Com_T) Date -> String 不匹配问题
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String startTime; // 视图属性-开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endTime; // 视图属性-结束时间

    private static final long serialVersionUID = 1L;
}
